package com.androidhive.dashboard;

import android.view.View;
import android.widget.RatingBar;
import android.widget.TextView;
import androidhive.dashboard.R;

class ViewWrapper 
{
	View base;
	RatingBar rate=null;
	TextView label=null;
	
	ViewWrapper(View base) {
		this.base=base;
	}
	
	RatingBar getRatingBar() {
		if (rate==null) 
		{
			rate=(RatingBar)base.findViewById(R.id.ratingbar_team);
		}
		return(rate);
	}
	
	TextView getLabel() 
	{
		if (label==null) 
		{
			label=(TextView)base.findViewById(R.id.lbl_team);
		}
		return(label);
	}
}